Adwaita: selected:hover and focus:selected:hover states
authorJakub Steiner <jimmac@gmail.com>
Tue, 13 Oct 2020 19:27:17 +0000 (21:27 +0200)
committerJakub Steiner <jimmac@gmail.com>
Tue, 13 Oct 2020 19:27:17 +0000 (21:27 +0200)
- getting pretty deep, but visually seems to make sense. Selected row hovers
  increase contrast.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3251

gtk/theme/Adwaita/_common.scss

index 8f45f24d7407f07b86556781de7c5cfcb2af7750..212ee4ae078c9c77bbe852d082734349f47185dc 100644 (file)
@@ -3460,10 +3460,11 @@ separator.sidebar {
         outline-width: 0;
         color: $selected_fg_color;
         background-color: $selected_bg_color;
+        &:hover { background-color: darken($selected_bg_color,10%); }
       }
       &:hover:not(:last-child) { /* FIXME: dirty specificity bump */
-        color: $fg_color;
-        background-color: $menu_selected_color;
+        color: $selected_fg_color;
+        background-color: darken(desaturate($selected_bg_color,100%),10%);
       }
     }